package assess

import (
	v1 "gitcode.com/G-YT/ANN/server/api/v1"
	"github.com/gin-gonic/gin"
)

type AssessRouter struct {
}

func (a *AssessRouter) InitAssessRouter(Router *gin.RouterGroup) {
	assessRouter := Router.Group("assess")
	assessApi := v1.ApiGroupApp.AssessApiGroup.AssessApi
	imageAssessApi := v1.ApiGroupApp.AssessApiGroup.ImageAssessApi
	{
		assessRouter.GET("getPhysiqueQuestion", assessApi.GetPhysiqueQuestion)           // 获取体質问卷
		assessRouter.POST("submitPhysiqueQuestion", assessApi.SubmitPhysiqueQuestion)    // 提交体質问卷
		assessRouter.GET("getQuestionResult", assessApi.GetQuestionResult)               // 获取问卷结果
		assessRouter.GET("getQuestionResultList", assessApi.GetQuestionResultList)       // 获取问卷结果列表
		assessRouter.GET("getOneQuestionResultByID", assessApi.GetOneQuestionResultByID) // 根据ID获取问卷结果
		assessRouter.GET("getEfficacyList", assessApi.GetEfficacyList)                   // 获取功效列表
		assessRouter.POST("saveUserEfficacyTag", assessApi.SaveUserEfficacyTag)          // 保存功效标签
		assessRouter.POST("image2Points", imageAssessApi.Image2Points)                   // 图像转坐标
		assessRouter.POST("submitAssess", imageAssessApi.SubmitAssess)                   // 提交评估获取结果
		assessRouter.GET("getAssessRecordList", imageAssessApi.GetAssessRecordList)      // 获取评估记录列表
		assessRouter.GET("getAssessRecord", imageAssessApi.GetAssessRecord)              // 获取评估记录详情
	}
}
